namespace SumerCoreDevOps.Shared.Models.Messages;

/// <summary>
/// 认证响应消息
/// </summary>
public class AuthResponseMessage
{
    /// <summary>
    /// 认证是否成功
    /// </summary>
    public bool Success { get; set; }

    /// <summary>
    /// 节点ID
    /// </summary>
    public long NodeId { get; set; }

    /// <summary>
    /// 错误消息（认证失败时）
    /// </summary>
    public string? ErrorMessage { get; set; }

    /// <summary>
    /// 新的连接令牌（可选，用于令牌轮换）
    /// </summary>
    public string? NewConnectionToken { get; set; }
}
